﻿@model GsifWeb4.ViewModels.CalenderViewModel

<h2>Administrera kalender</h2>

@{Html.RenderPartial("_Calender", true);}

@{
   if (Model.LoggedInPlayer != null && Model.LoggedInPlayer.AllowedToWebRed()) 
   {
    <div id = "AddCalender">
        @Html.ActionLink("Lägg till match", "CreateEvent", "Calender", new { calenderEventType = (int)GsifWeb4.CalenderHelper.CalenderEvent.EventType.Match }, null) <br />
        @Html.ActionLink("Lägg till träning", "CreateEvent", "Calender",  new { calenderEventType = (int)GsifWeb4.CalenderHelper.CalenderEvent.EventType.Training }, null) <br />
        @Html.ActionLink("Lägg till övrigt", "CreateEvent", "Calender", new { calenderEventType = (int)GsifWeb4.CalenderHelper.CalenderEvent.EventType.Other }, null) <br />
    <br />
    </div>
    }
}
